Skip to content

[interpreter] Fix en/decoding of s33 - #2294

Merged
rossberg merged 2 commits into
mainfrom
fix.2289
Oct 21, 2026
Merged

rossberg merged 2 commits into
mainfrom
fix.2289

Conversation

@rossberg

Copy link
Copy Markdown
Member

Fixes #2289.

@rossberg
rossberg requested a review from tlively October 21, 2026 12:24
Comment thread test/core/binary.wast

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gemini suggests that we could also add an assert_malformed test for a negative s33 (e.g. -0x1_0000_0000 encoded as \80\80\80\80\70), which would previously wrap to 0l.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@rossberg
rossberg merged commit a550c39 into main Oct 21, 2026
2 checks passed
@rossberg
rossberg deleted the fix.2289 branch October 21, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[interpreter] Binary decoder rejects heap type indices >= 2^31 as malformed

2 participants